package com.cw.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelProperty;

/**
* @author ly
* @since 2021-04-26
*/
@ApiModel(value ="字典表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BASE_DICT")
public class BaseDict implements Serializable {
private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "编码")
    @ExcelProperty(value = "CODE")
    @TableField("CODE")
    private String code;

    @ApiModelProperty(value = "名称")
    @ExcelProperty(value = "NAME")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "排序")
    @ExcelProperty(value = "ORDER_ID")
    @TableField("ORDER_ID")
    private BigDecimal orderId;

    @ApiModelProperty(value = "父ID")
    @ExcelProperty(value = "PARENT_ID")
    @TableField("PARENT_ID")
    private String parentId;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "NOTES")
    @TableField("NOTES")
    private String notes;

    @ApiModelProperty(value = "删除 0:未删除 1:已删除")
    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
    private String deleteFlag;

    @ApiModelProperty(value = "启用禁用 0:启用 1:禁用")
    @ExcelProperty(value = "ENABLE")
    @TableField("ENABLE")
    private String enable;

    @ApiModelProperty(value = "创建时间")
    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private List<BaseDict> children;

}
